package com.carbohydrate42.kotlin_compose_demo.compose

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview

/**
 * compose 1.4 已经包含
 */
@OptIn(ExperimentalFoundationApi::class)
@Preview(showBackground = true)
@Composable
fun TryMarqueeText() {
    Column {
        Text(
            modifier = Modifier.basicMarquee(),
            text = "12345678901012312321312"
        )
    }
}